﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using iLangl.Model;
using iLangl.BusinessModel.Managers;

namespace iLangl.Tests.InitialDataFixture
{
	[TestClass]
	public class WorkAreasRegistrationTest
	{
		[TestMethod]
		public void WorkAreaRegistration()
		{
			List<TPWorkArea> terminologies = new List<TPWorkArea>();

			TPWorkArea terminology = new TPWorkArea();
			terminology.Id = "1DD20FDD-5AB1-4BB3-A193-D02EE2CF9DB4";
			terminology.Name = "IT Industry";
			terminology.TpId = TestSettings.LanguageWireCompanyId;
			terminology.TPWorkAreaId = "1";
			terminology.TPWorkAreaName = "IT Industry";
				
			terminologies.Add(terminology);

			terminology = new TPWorkArea();
			terminology.Id = "99518838-AE00-4F5C-BF51-0FC4654905A0";
			terminology.Name = "Healthcare";
			terminology.TpId = TestSettings.LanguageWireCompanyId;
			terminology.TPWorkAreaId = "2";
			terminology.TPWorkAreaName = "Healthcare";
			terminologies.Add(terminology);

			WorkAreaManager.Instance.RegisterTPWorkAreas(terminologies);
			
		}
	}
}
